<?php
/**
 * Created by PhpStorm.
 * User: Jack
 * Date: 2018/2/25
 * Time: 下午12:38
 */

//数组相加
$a = ['a'=>1,1=>2,2=>3,3=>4];
$b = ['a'=>5,1=>6,2=>7,3=>8];

print_r(array_merge($a, $b));
print_r($a + $b);

die;

//获取url后缀扩展名
$url = "http://baidu.com/dddd.png";

// pathinfo
$pathinfo = pathinfo($url);

// strrpos
print_r(substr($url, strrpos($url, '.') + 1));


die;

//数组相加
$a = [1];
$b = [1];

print_r(array_merge($a, $b));
print_r($a + $b);

